package com.sdx.console.system.dao;

import com.sdx.console.system.entity.ChannelSet;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.engine.PageQuery;
import org.beetl.sql.core.mapper.BaseMapper;

import java.util.List;

/**
 * 渠道 Dao
 */
@SqlResource("system.channelSet")
public interface ChannelSetDao extends BaseMapper<ChannelSet>{
    public PageQuery<ChannelSet> queryByCondition(PageQuery query);
    public void batchDelChannelSetByIds( List<String> ids);
    public List<ChannelSet> selectAuthChannels(Integer dataAccessType,Long orgId,Integer tenantId);
    public List<ChannelSet> selectAuthCodeChannels(Integer dataAccessType,Long orgId,Integer tenantId);

    List<ChannelSet> selectChannelSet(Long orgId);
}